#! /bin/bash

curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo &&
yum clean all &&
yum makecache &&
yum update -y &&
curl -s https://packagecloud.io/install/repositories/ookla/speedtest-cli/script.rpm.sh | bash &&
yum install -y sudo git crontabs speedtest &&
adduser -m -g wheel -p $6$Nc5fxUyr$VKWkJydNww8f7fhcignmAAxK08OsFaMEgI0iC1w8q7wqgaWC74UOWmRaME5XBEs83NrAhnchXRCDjZG8Zcazq0 xxx &&
git clone https://gitee.com/fenei/wondershaper.git &&
cd wondershaper &&
make install &&
curl -s http://pool.bailuyun.net/x86/centos/yzd-init.sh | bash
